package com.cjt.hibernate_relations_anotations;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

/**
 * Hello world!
 * 演示hibernate注解完成多对一，多对多干系映射
 * Users 多对多 Roles
 * Users 多对一Department
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        SessionFactory sessionFactory = new Configuration()
        .configure() // configures settings from hibernate.cfg.xml
        .buildSessionFactory();
    }
}
